<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Deck</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock.js" TYPE="text/javascript"
></SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Deck</FONT
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
>Representation of the deck.  Since there should only be one deck, operations
  which modify the deck return the resulting deck as well.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
> <A HREF="#t%3AT"
>T</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Adeck"
>deck</A
> :: <A HREF="Deck.html#t%3AT"
>T</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Apick"
>pick</A
> :: <A HREF="Deck.html#t%3AT"
>T</A
> -&gt; (<A HREF="Card.html#t%3AT"
>T</A
>, <A HREF="Deck.html#t%3AT"
>T</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Adeal"
>deal</A
> :: Int -&gt; <A HREF="Deck.html#t%3AT"
>T</A
> -&gt; ([<A HREF="Card.html#t%3AT"
>T</A
>], <A HREF="Deck.html#t%3AT"
>T</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3Ashuffle"
>shuffle</A
> :: <A HREF="Deck.html#t%3AT"
>T</A
> -&gt; IO <A HREF="Deck.html#t%3AT"
>T</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Documentation</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
> <A NAME="t%3AT"
></A
><B
>T</B
> </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:T')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:T" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
>Eq <A HREF="Deck.html#t%3AT"
>T</A
></TD
></TR
><TR
><TD CLASS="decl"
>Show <A HREF="Deck.html#t%3AT"
>T</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Adeck"
></A
><B
>deck</B
> :: <A HREF="Deck.html#t%3AT"
>T</A
></TD
></TR
><TR
><TD CLASS="doc"
>Constructs a deck with all 52 cards.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Apick"
></A
><B
>pick</B
> :: <A HREF="Deck.html#t%3AT"
>T</A
> -&gt; (<A HREF="Card.html#t%3AT"
>T</A
>, <A HREF="Deck.html#t%3AT"
>T</A
>)</TD
></TR
><TR
><TD CLASS="doc"
>Pick one card from the deck, return the resulting deck.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Adeal"
></A
><B
>deal</B
> :: Int -&gt; <A HREF="Deck.html#t%3AT"
>T</A
> -&gt; ([<A HREF="Card.html#t%3AT"
>T</A
>], <A HREF="Deck.html#t%3AT"
>T</A
>)</TD
></TR
><TR
><TD CLASS="doc"
>Pick n cards from the deck, return the resulting deck.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="decl"
><A NAME="v%3Ashuffle"
></A
><B
>shuffle</B
> :: <A HREF="Deck.html#t%3AT"
>T</A
> -&gt; IO <A HREF="Deck.html#t%3AT"
>T</A
></TD
></TR
><TR
><TD CLASS="doc"
>Shuffle's the deck, bridging the deck 7 times has been shown to provide
  adequate randomness.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 0.8</TD
></TR
></TABLE
></BODY
></HTML
>
